
class HardwareVisual:
    def __init__(self, input_path):
        self.input_path = input_path


    # 从Log中提取Alarm数据，需要构建原来的模型
    def parseLog(self):
        self.readLog()
        for line in self.content:
            line = line.lstrip()

    def readLog(self):
        f = open(self.input_path, encoding="ISO-8859-1")
        fileContent = f.readlines()
        f.close()
        self.content = fileContent

# 测试用
if __name__ == '__main__':
    parser =
    parser.parse()
    parser.plot(7)